package com.guzhi;

import java.util.Comparator;

public class Demo {
    public static void main(String[] args) {

        //创建对象，调用方法
        Student s1 = new Student(20, "abc");
        Student s2 = new Student(21, "qqq");
        Comparable max = Method.getmax(s1, s2);
        System.out.println(max);
    }
}
